import { createRouter, createWebHistory } from 'vue-router';
import Main from '@/views/Main.vue'; //
import Home from '@/views/Home.vue'
import UserInfo from '@/views/SysSettings/UserInfo.vue'
import AccountSetting from '@/views/SysSettings/AccountSetting.vue'
 
 
const routes = [
  {
    path: '/',
    name: 'main',
    component: Main,
    children: [
      {
        path: 'home',
        name: 'home',
        component: Home,
      
      },
      {
        path: 'UserInfo',
        name: 'UserInfo',
        component: UserInfo,
        
      },
      {
        path: 'AccountSetting',
        name: 'AccountSetting',
        component:AccountSetting
      },
    ],
  },
 
 
];
 
const router = createRouter({
  history: createWebHistory(),
  routes,
});
 
export default router;